package com.ctl.szmd.szmd.feature_wm.data.bean

import androidx.recyclerview.widget.DiffUtil
import com.ctl.szmd.szmd.feature_wm.data.model.WmDataListModel

/**
 * created by : chentl
 * Date: 2020/08/11
 */
data class FulianSubOrgInfoForListForApiList(
    val DepId: String?,
    val DepName: String?,
    val ImgNetPath: String?,
    val IsLeaf: Int?,
    val DepIntro: String?
){
    companion object {
        val diffCallback =
            object : DiffUtil.ItemCallback<FulianSubOrgInfoForListForApiList>() {
                override fun areItemsTheSame(
                    oldItem: FulianSubOrgInfoForListForApiList,
                    newItem: FulianSubOrgInfoForListForApiList
                ): Boolean {
                    return oldItem.DepId == newItem.DepId
                }

                override fun areContentsTheSame(
                    oldItem: FulianSubOrgInfoForListForApiList,
                    newItem: FulianSubOrgInfoForListForApiList
                ): Boolean {
                    return oldItem == newItem
                }

            }
    }
}